package com.annotation.lifeCycle.propertySource;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author: qiuli
 * @date: 2022/1/10 20:39
 * @description:
 */

@PropertySource(value = {"classpath:/person.properties"})
@Configuration
public class PropertySourceConfig {

    @Bean
    public Person person() {
        return new Person();
    }
}
